class animel:
    def spenk(self):
        pass
    def eat(self):
        pass
class dog(animel):
    def speak(self):
        print('wangwang')
    def eat(self):
        print('骨头')
class cat(animel):
    def speak(self):
        print('niaoniao')
    def eat(self):
        print('yu')
cat1=cat()
dog1=dog()
def speak1(animel:animel):
    animel.speak()
    animel.eat()
speak1(dog1)
speak1(cat1)